package com.demo.connectdbtest.module.auto;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiOperation;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.io.File;

@RestController
@RequestMapping("/api/auto")
public class AutoController {

    @ApiOperation(value = "解析html文件获取数据")
    @GetMapping("/html/parse")
    public void parseHtml() {
        //http://t.csdnimg.cn/BYRQE

    }


    @ApiOperation(value = "集合请求参数校验")
    @GetMapping("/parse")
    public void parseCollectData(@RequestParam("msg") String msg, @RequestParam("elist") String elist) {
        System.out.println("接收到的参数："+msg);
        EquipmentEmailVo equipmentEmailVo = JSONObject.parseObject(elist, EquipmentEmailVo.class);
        System.out.println("接收到的参数："+equipmentEmailVo);

    }
}
